<?php 
	$a = 10;

	while ( $a > 0) {
		echo 'Selling a widget... ';
		$a--;
		echo "done. There are ".$a." widgets left<br>";
	}

	echo "We're right out of widgets!";
?>